package com.xfb.code.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @Auther: Xing Fang Bin
 * @Date: 2021/10/29/15:51
 * @Description:
 */
public interface CodeMapper {

    @Insert("insert into lagou_auth_code(email,code,createtime,expiretime) values(#{email},#{code},#{now},#{afterTime})")
    int insertCode(@Param("email") String email, @Param("code") String code, @Param("now")Date now, @Param("afterTime") Date afterTime);

}
